﻿using System;

namespace ATMCommonExceptions
{
    public class SyntaxErrorInFile : Exception
        {
			readonly string line_;
            public SyntaxErrorInFile(string line)
            {
                line_ = line;
            }
            public override string ToString()
            {
                return "Error in line: \"" + line_ + "\"\n";
            }
        }
    public class AtmCellSizeError : Exception
    {
	    public byte[] data { get; private set; }
	    public AtmCellSizeError(byte[] bytes)
        {
            data = bytes;
        }
        public override string ToString()
        {
            return "ATMCellSizeError in Cell:\n" + System.Text.Encoding.UTF8.GetChars(data) + "\n";
        }
    }
}